//
//  LBBlendTexture.mm
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 3/29/13.
//  Copyright (c) 2013 UIT. All rights reserved.
//

#include "LBBlendTextureFilter.h"
#include "LBGraphics.h"

void LBBlendTextureFilter::setBlendTexture(LBTexture* blendTexture){
    setTexture2(blendTexture);
}

void LBBlendTextureFilter::setOpactiy(float opacity){
    this->opacity = opacity;
    LBGraphics::getInstance()->useProgram(program);
    glUniform1f(opacityUniform, opacity);
}